from django import forms
from forum.models import Article, UserImg


class AddArticleForm(forms.ModelForm):
    class Meta:
        model = Article
        fields = ['board', 'title', 'content']


class UploadImageForm(forms.ModelForm):
    class Meta:
        model = UserImg 
        fields = ['image']

